<%@ page contentType="text/html;charset=utf-8" language="java"
	pageEncoding="UTF-8" import="java.util.Date"%>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="zh" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="zh" class="ie9"> <![endif]-->
<!--[if !IE]><!-->
<html lang="zh">
<!--<![endif]-->

<head>
    <meta charset="utf-8" />
    <title>条码仓库管理系统</title>
    <%@include file="/WEB-INF/jsp/common/style.jsp"%> 

    <style type="text/css">
        .logo { width: 100%; text-align: center; height:35px; font-size:30px; margin-top:30px; color:#2A8FCD; font-weight:bold; }
        #home { margin:auto; position:initial;  }
        .wrapper .item { margin-top:10px; padding-left:25px;}
        .item .btn-primary { width:228px; }
    </style>
    <script type="text/javascript">
    if (this.parent != this) {
        top.location.href = document.location.href;
    }
    $(document).ready(function () {
        $("#input-password").keydown(function (e) {
            if (e.which == 13) {
                login();
            }
        });
    });
    function login(){
    	var userName = $("#input-username").val();
        var passWord = $("#input-password").val();
        if (git.IsEmpty(userName)) {
        	layer.alert('请输入用户名')
            return false;
        }
        if (git.IsEmpty(passWord)) {
        	layer.alert('请输入密码', {
        		  icon: 1,
        		  skin: 'layer-ext-moon'
        		})

            return false;
        }
        
        objform.submit();
    }
    </script>
</head>



<body class="modal-ready">
    <div class="logo">遇见当下仓储系统</div>
    <div class="container">
        <div id="home">
            <div class="wrapper">
                <form name="objform" action="${pageContext.request.contextPath}/login"	method="post">
                    <fieldset>
                        <legend></legend>
                        <div class="item user">
                        	<select name="storageId">
                        	<c:forEach items="${storages}" var="item" varStatus="itemStatus">
                        	<option value="${item.id}">${item.storageName}</option>
                        	</c:forEach>  
                        	
                        	</select>
                        </div>
                        <div class="item user">
                            <input type="text" id="input-username" name="loginName" value="administrator" placeholder="用户名"/>
                        </div>
                        <div class="item password">
                            <input type="password" id="input-password" name="password" value="adminjooshow" placeholder="密码"/>
                        </div>
                        <div class="item">
                            <input id="login-btn" class="btn btn-primary" type="button" value="登录" onclick="login()"/>
                        </div>
                    </fieldset>
                </form>

            </div>
            <div class="footer"><a>版权声明: 不得用于任何商业用途,违法必究</a></div>
        </div>
    </div>
</body>
</html>
